<div id="sidebar" class="office-sidebar">
	<div id="logo">
		<img src="<?php echo base_url('styles/logo.png');?>">
	</div>
	<h2 class="sidebar-head">下属教研室</h2>
	<ul class="sidebar-list">
	<?php foreach($offices as $office):?>		
		<li><a title="<?=$office->OrgName?>" href="<?=site_url('/offices/item/'.$office->OrgId)?>"><?=$office->OrgName?></a></li>
	<?php endforeach;?>
	</ul>
	<div id="left_pics">
		<script type="text/javascript">
		<!--
		var focus_width=250
		var focus_height=175
		var text_height=24
		var swf_height = focus_height+text_height
		function clearText (str) {
			return str.substr(0, str.length - 1);
		}
					
		var pics=clearText('<?php echo base_url('styles/picshow1.jpg');?>|<?php echo base_url('styles/picshow2.jpg');?>|<?php echo base_url('styles/picshow3.jpg');?>|')
							 var links=clearText('<?php echo base_url('');?>|<?php echo base_url('');?>|<?php echo base_url('');?>')
							
							 var texts=clearText("||")
							 document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cabjavascript:void(0)version=6,0,0,0" width="'+ focus_width +'" height="'+ swf_height +'" align="left"  hspace="0">');
		document.write('<param name="allowScriptAccess" value="sameDomain"><param name="movie" value="<?php echo base_url('styles/pixviewer.swf');?>"><param name="quality" value="high"><param name="bgcolor" value="#fffff">');
		document.write('<param name="menu" value="false"><param name=wmode value="opaque">');
		document.write('<param name="FlashVars" value="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'">');
		document.write('<embed src="<?php echo base_url('styles/pixviewer.swf');?>" wmode="opaque" FlashVars="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'" menu="false" bgcolor="#ffffff" quality="high" width="'+ focus_width +'" height="'+ swf_height +'" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
		document.write('</object>');
		
		//-->
		</script>
	</div>
	<form id="search">
	<span class="s-words">搜索</span>
	<span><input type="text" size="7"></span>
    <span><select class="select" id="selectID_0"><option>标题搜索</option><option>内容搜索</option></select></span>
	<span><input class="s-button" type="submit" value=""/></span>
	</form>
	<div id="links">
	<div class="links-unit">
	<span class="links-left">资源连接</span>
	<span class="links-right">
		<select class="select"  onchange="top.location=this.value;">
			<option value="#">校内主页</option>
      <option value="http://www.bupt.edu.cn/">北邮主页</option>
		</select>
	</span>
	</div>
	<div class="links-unit">
	<span class="links-left">&nbsp;</span>
	<span class="links-right">
		<select class="select" onchange="top.location=this.value;">
			<option value="#">课程资源</option>
			<option value="#">暂无</option>
		</select>
	</span>
	</div>
	<div class="links-unit">
	<span class="links-left">&nbsp;</span>
	<span class="links-right">
		<select class="select" onchange="top.location=this.value;">
      <option value="#">推荐站点</option>
			<option value="http://www.bupt.edu.cn/">北邮主页</option>
		</select>
	</span>
	</div>
	</div>
</div>